package com.atguigu.yygh.vo.user;

public class Singleton2 {
    //私有构造方法
    private Singleton2(){

    }
    //初始化变量为null
    private static Singleton2 singleton2 =null;
    public Singleton2 getInstance(){
        if (singleton2==null){
            Singleton2 singleton2 = new Singleton2();
        }
        return singleton2;
    }
}
